﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Xml;

namespace PriceHistoryService
{
    /// <summary>
    /// Summary description for PriceHistoryWebService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class PriceHistoryWebService : System.Web.Services.WebService
    {
        HelperFunctions hlp = new HelperFunctions();
        [WebMethod]
        public XmlDocument getPriceHistoryAsXML(string strTicker, string strStartDate, string strEndDate)
        {
            XmlDocument xReturn = new XmlDocument();
            xReturn = hlp.getXML(strTicker, strStartDate, strEndDate);
            return xReturn;

        }

    }
}
